package com.ruoyi.system.api.domain;

import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 附件关联对象 attachment_associated
 * 
 * @author ruoyi
 * @date 2024-09-18
 */
public class AttachmentAssociated extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 关联id */
    @Excel(name = "关联id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long associatedId;

    /** 附件id */
    @Excel(name = "附件id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long attachmentId;

    /** 附件类型（1：头像，2：产品介绍，3：舌诊，4：面诊......） */
    @Excel(name = "附件类型", readConverterExp = "1=：头像，2：产品介绍，3：舌诊，4：面诊......")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAssociatedId(Long associatedId) 
    {
        this.associatedId = associatedId;
    }

    public Long getAssociatedId() 
    {
        return associatedId;
    }
    public void setAttachmentId(Long attachmentId) 
    {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId() 
    {
        return attachmentId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("associatedId", getAssociatedId())
            .append("attachmentId", getAttachmentId())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .toString();
    }
}
